package animals;

public class Dog extends Animals {

        Dog(String name) {
            super(name);
        }
        @Override
        public void speak(){
            System.out.println(name+" wang,wang,wang");
        }
        public void wagTail(){
            System.out.println(name+" wags its tail");
        }

}
